package com.shg.service;


import java.util.List;

import com.shg.bean.Admin;
import com.shg.bean.QueryResult;
import com.shg.bean.Roles;

public interface AdminService extends BasiceDao<Admin> {

	public Admin getLogin(Admin admin) throws Exception;
	
	public QueryResult<Admin> queryAdmin(Integer firstResult,Integer maxResult)throws Exception;

	public void updateLock(Admin admin)throws Exception;

	public void updateAdmin(Admin admin)throws Exception;
	
	public void updateAdminFOrRole(Admin admin,Roles role)throws Exception;
	
	public List<Roles> getAdminForRole(Admin admin)throws Exception;
}
